package com.qyc.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

import lombok.Data;

/**
 * 栏圈信息表
 * @TableName manager_hurdles
 */
@TableName(value ="manager_hurdles")
//@Data
public class Hurdles implements Serializable {
    /**
     * 栏圈id
     */
    @TableId
    private String hId;

    /**
     * 栏圈名称
     */
    private String hName;

    /**
     * 栏圈描述
     */
    private String hDesc;

    /**
     * 栏圈存储猪容量
     */
    private Object hMax;

    /**
     * 栏圈存储猪已存数量
     */
    private Object hSaved;

    /**
     * 创建时间
     */
    private Date hTime;

    /**
     * 状态(可用禁用)
     */
    private String hEnable;

    /**
     * 状态(未满已满)
     */
    private String hFull;

    /**
     * 栏舍id外键
     */
    private String hFenceId;

    public Hurdles() {
    }

    public Hurdles(String hId, String hName, String hDesc, Object hMax, Object hSaved, Date hTime, String hEnable, String hFull, String hFenceId) {
        this.hId = hId;
        this.hName = hName;
        this.hDesc = hDesc;
        this.hMax = hMax;
        this.hSaved = hSaved;
        this.hTime = hTime;
        this.hEnable = hEnable;
        this.hFull = hFull;
        this.hFenceId = hFenceId;
    }

    public String gethId() {
        return hId;
    }

    public void sethId(String hId) {
        this.hId = hId;
    }

    public String gethName() {
        return hName;
    }

    public void sethName(String hName) {
        this.hName = hName;
    }

    public String gethDesc() {
        return hDesc;
    }

    public void sethDesc(String hDesc) {
        this.hDesc = hDesc;
    }

    public Object gethMax() {
        return hMax;
    }

    public void sethMax(Object hMax) {
        this.hMax = hMax;
    }

    public Object gethSaved() {
        return hSaved;
    }

    public void sethSaved(Object hSaved) {
        this.hSaved = hSaved;
    }

    public Date gethTime() {
        return hTime;
    }

    public void sethTime(Date hTime) {
        this.hTime = hTime;
    }

    public String gethEnable() {
        return hEnable;
    }

    public void sethEnable(String hEnable) {
        this.hEnable = hEnable;
    }

    public String gethFull() {
        return hFull;
    }

    public void sethFull(String hFull) {
        this.hFull = hFull;
    }

    public String gethFenceId() {
        return hFenceId;
    }

    public void sethFenceId(String hFenceId) {
        this.hFenceId = hFenceId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Hurdles hurdles = (Hurdles) o;
        return Objects.equals(hId, hurdles.hId) && Objects.equals(hName, hurdles.hName) && Objects.equals(hDesc, hurdles.hDesc) && Objects.equals(hMax, hurdles.hMax) && Objects.equals(hSaved, hurdles.hSaved) && Objects.equals(hTime, hurdles.hTime) && Objects.equals(hEnable, hurdles.hEnable) && Objects.equals(hFull, hurdles.hFull) && Objects.equals(hFenceId, hurdles.hFenceId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(hId, hName, hDesc, hMax, hSaved, hTime, hEnable, hFull, hFenceId);
    }

    @Override
    public String toString() {
        return "Hurdles{" +
                "hId='" + hId + '\'' +
                ", hName='" + hName + '\'' +
                ", hDesc='" + hDesc + '\'' +
                ", hMax=" + hMax +
                ", hSaved=" + hSaved +
                ", hTime=" + hTime +
                ", hEnable='" + hEnable + '\'' +
                ", hFull='" + hFull + '\'' +
                ", hFenceId='" + hFenceId + '\'' +
                '}';
    }

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}